package cn.fl.risknew.service.impl;

import cn.fl.risknew.service.IAutoAssignApiService;
import cn.fl.risknew.service.IAutoAssignService;
import cn.fl.risknew.transform.AutoAssignResultVOTransform;
import cn.fl.risknew.vo.AutoAssignResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 自动分配任务
 * 作者:hongyanbo
 * 时间:2018/9/10
 */
@Service
public class IAutoAssignServiceImpl implements IAutoAssignService{

    @Autowired
    private IAutoAssignApiService autoAssignApiService;

    @Override
    public AutoAssignResultVO getShortAgeCstList(Double money, List<String> buOrgCd, String ovdDaysMin, String ovdDaysMax, String mcrCd, String bizFlag, List<String> insCode) {
        AutoAssignResultVO vo = AutoAssignResultVOTransform.toVO(autoAssignApiService.getShortAgeCstList(money,buOrgCd,ovdDaysMin,ovdDaysMax,mcrCd,bizFlag,insCode));
        return vo;
    }

    @Override
    public AutoAssignResultVO getLongAgeCstList(Double money) {
        AutoAssignResultVO vo = AutoAssignResultVOTransform.toVO(autoAssignApiService.getLongAgeCstList(money));
        return vo;
    }
}
